<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Master-Unlock API : Examples</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
</head>

<body>
<h1>Master-Unlock API Commands</h1>
<p>Click to view an example of the following commands :</p>
<?php
	/* List all files in this directory, except the present one */
	$directory = opendir ('.');
	
	if (is_resource ($directory)) {
		while (is_string ($file = readdir ($directory))) {
			if (is_file ($file)) {
				if ($file != basename(__FILE__)) {
					print ('<div><a href="' . htmlspecialchars ($file) . '">' . htmlspecialchars(basename($file, '.php')) . '</a></div>');
				}
			}
		}
		
		closedir ($directory);
	}
?>
</body>
</html>